package com.bruan.Stream;

import java.util.stream.Stream;

public class StreamTest3 {
    public static void main(String[] args) {
        Stream<String> s1 = Stream.of("dw","dwdw","dwdw","dwdw");
        Stream<String> s2 = Stream.of("dw","dwdw","dwdw","dwdw");
        Stream<String> s3 = Stream.concat(s1,s2);
        s3.forEach(s -> System.out.println(s));
    }
}
